package cn.wusifx.zabbix.request.builder.iconmap;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/iconmap/update
 */
public class IconmapUpdateRequestBuilder extends UpdateRequestBuilder {
    private String iconmapId;
    public IconmapUpdateRequestBuilder(String auth) {
        super("iconmap.update", auth);
    }

    public IconmapUpdateRequestBuilder(Long id, String auth) {
        super("iconmap.update", id, auth);
    }

    public String getIconmapId() {
        return iconmapId;
    }

    public IconmapUpdateRequestBuilder setIconmapId(String iconmapId) {
        this.iconmapId = iconmapId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("iconmapid",iconmapId);
        return baseRequest;
    }
}
